package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "test3")
public class Listener3 {
    @RabbitHandler
    public void messageHandler(String str){

        System.out.println("这里是3号监听者----------------------"+str);
    }

}
